/**
 * @Description:
 * @Author: saqqdy
 * @LastEditors: saqqdy
 * @Date: 2021-07-18 00:39:35
 * @LastEditTime: 2021-07-18 12:01:24
 */
import { join } from 'path'

import ESLintPlugin from 'eslint-webpack-plugin'

import { rootDir } from '../utils/env'

const config = {
    context: join(rootDir, '/src'),
    extensions: ['js', 'jsx', 'ts', 'tsx']
}

export const esLintPlugin = new ESLintPlugin(config)
